package org.appfuse.service.impl;

import java.util.List;

import org.appfuse.dao.BasicInfoDao;
import org.appfuse.model.BasicInfo;
import org.appfuse.service.BasicInfoManager;

public class BasicInfoManagerImpl extends BaseManager implements
		BasicInfoManager {
	private BasicInfoDao dao;

	/**
	 * Set the Dao for communication with the data layer.
	 * 
	 * @param dao
	 */
	public void setBasicInfoDao(BasicInfoDao dao) {
		this.dao = dao;
	}

	public void delete(BasicInfo persistentInstance) {
		// TODO Auto-generated method stub
		dao.delete(persistentInstance);
	}

	public List findAll() {
		// TODO Auto-generated method stub
		return dao.findAll();
	}

	public List findByExample(BasicInfo instance) {
		// TODO Auto-generated method stub
		return dao.findByExample(instance);
	}

	public BasicInfo findById(String id) {
		// TODO Auto-generated method stub
		return dao.findById(id);
	}
	
	public List findByUserId(String userId){
		return dao.findByUserId(userId);
	}

	public List findByProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return dao.findByProperty(propertyName, value);
	}

	public void save(BasicInfo transientInstance) {
		// TODO Auto-generated method stub
		dao.save(transientInstance);
	}

	public void update(BasicInfo transientInstance) {
		// TODO Auto-generated method stub
		dao.update(transientInstance);
	} 
}
